#pragma once
#include "QScreenMonitorWidget.h"
namespace Ui { class QMainControllerWindow; };

class QMainControllerWindow : public QWidget
{
	Q_OBJECT

public:
	QMainControllerWindow(QWidget *parent = Q_NULLPTR);
	~QMainControllerWindow();
	bool StartClientServer();
	void CloseClientServer();
protected:
	bool eventFilter(QObject* watched, QEvent* evt);
	void mouseDoubleClickEvent(QMouseEvent* event);
private:
	Ui::QMainControllerWindow *ui;

	QScreenMonitorWidget* m_qScreenMonitorWidget;
private:
	void InitUI();
signals:
	void ToAcceptSocketClient(void* hSocketClient, int type, int id);
	void ToDiscardSocketClient(void* hSocketClient, int type, int id);
public slots:
	void DoAcceptSocketClient(void* hSocketClient, int type, int id);
	void DoDiscardSocketClient(void* hSocketClient, int type, int id);
};
